#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""
Author: Faker.Deng
Exercise after Chapter 1 Problem 1
"""
import math


# Problem 1
def ball_information():
    """
    Calculate ball information with input radius
    :return: None
    """
    radius = float(input("Please input radius for a ball: "))
    diameter = 2 * radius
    perimeter = math.pi * diameter
    surface = math.pi * math.pow(diameter, 2)
    volume = 4 / 3 * math.pi * math.pow(radius, 3)
    print("Diameter  = %10.3f" % diameter)
    print("Perimeter = %10.3f" % perimeter)
    print("Surface   = %10.3f" % surface)
    print("Volume    = %10.3f" % volume)
    return


if __name__ == "__main__":
    ball_information()
